package com.hyl.springbootappinfo.service.impl;

import com.hyl.springbootappinfo.dao.Data_dictionaryMapper;
import com.hyl.springbootappinfo.dao.Dev_userMapper;
import com.hyl.springbootappinfo.pojo.App_info;
import com.hyl.springbootappinfo.pojo.Dev_user;
import com.hyl.springbootappinfo.service.Dev_userService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class Dev_userServiceImpl implements Dev_userService {

    @Resource
    private Dev_userMapper userMapper;
    @Resource
    private Data_dictionaryMapper data_dictionaryMapper;

    @Override
    public Dev_user login(Dev_user user) {
        return userMapper.login(user);
    }

    @Override
    public List<App_info> applist(Integer status, Integer pageindex, Integer pagesize
            , String softwareName, Integer flatformId, Integer categoryLevel3, Integer categoryLevel1, Integer categoryLevel2) {

        return userMapper.applist(status, pageindex, pagesize
                , softwareName,flatformId,categoryLevel3, categoryLevel1,categoryLevel2);
    }

    @Override
    public int count(Integer status, String softwareName,Integer flatformId,Integer categoryLevel3,
                     Integer categoryLevel1,Integer categoryLevel2) {
        return userMapper.count(status,softwareName,flatformId,categoryLevel3,categoryLevel1,categoryLevel2);
    }

    @Override
    public int findAPKName(String APKName) {
        return userMapper.findAPKName(APKName);
    }

    @Override
    public int appinfoadd(App_info app_info) {
        return userMapper.appinfoadd(app_info);
    }

    @Override
    public App_info findById(Integer id) {
        return userMapper.findById(id);
    }

    @Override
    public App_info appview(Integer id) {
        return userMapper.appview(id);
    }

    @Override
    public int appmodify(App_info app_info) {
        return userMapper.appmodify(app_info);
    }

    @Override
    public int versionmodify(Integer id, Integer versionId) {
        return userMapper.versionmodify(id,versionId);
    }

    @Override
    public int appinfofilemodify(Integer id) {
        return userMapper.appinfofilemodify(id);
    }

    @Override
    public int delappinfo(Integer id) {
        return userMapper.delappinfo(id);
    }

    @Override
    public int statusmodify(Integer status,Integer id) {
        return userMapper.statusmodify(status, id);
    }
}
